<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %><%--06_forEathcMap.jsp--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>06_forEathcMap</title>
</head>
<body>
    <%
        Map<String, Object> map = new HashMap<>();
        map.put("key","ylaihui");
        map.put("key1","ylaihui.com");
        map.put("key2","www.ylaihui.com");

        request.setAttribute("map",map);
    %>
    <c:forEach items="${requestScope.map}" var="entry">
        ${entry.key} = ${entry.value} <br>
    </c:forEach>
</body>
</html>
